
<%@ page import="java.util.*" %>
<%
String Code = (String)session.getAttribute("LanguageCode");
String SubCode = (String)session.getAttribute("LanguageSubcode");
Locale locale = new Locale(Code, SubCode);
ResourceBundle resource = ResourceBundle.getBundle("resource", locale);
%>
<script src="js/components/ReasonCancellation/ReasonCallation.js"></script>

<!----------------------------------------insert Reason---------------------->

<div id="dialog-show-insert-reson" style="display:none; border:#335385 solid 1px;">
<table>
<tr style="background-color:#6780bb;" height="34px">
<td colspan="4" width="100%">
<span style="color:#FFF; font-size:18px; float:left; padding-left:10px;">
<%out.print(resource.getString("ReasonCancellation.title.reason"));%>
</span>
<span style="float:right; margin-right:5px;"><img src="/images/components/editrevered/cancel.png" width="12px" height="12px" id="reason-insert-close" onclick="CloseReasonWarning(id)"></span>
</td>
</tr>
<tr>
<td><span name="insert-reson-reason"><%out.print(resource.getString("ReasonCancellation.popup.reason"));%>:</span></td>
<td><select id="insert-reson-reason"></select>&nbsp;</td>
<td><span name="insert-reson-cost"><%out.print(resource.getString("ReasonCancellation.popup.cost"));%>:</span></td>
<td><span  style="width:80px"><input type="text" id="insert-reson-cost" placeholder="00.00"></span>&nbsp;<span id="unit-money"><%out.print(resource.getString("Monetunit.bath"));%></span></td>
</tr>
<tr>
<td colspan="4">
<div style="margin-left: 60px;"><a href="javascript:void(0);" onclick="ShowInsertTime()"><%out.print(resource.getString("ReasonCancellation.popup.inserttime"));%></a></div>
<div id="reason-insert-time" style="display:none; margin-left: 60px;">
<span><select id="insert-reson-timeH">

</select></span>:
<span><select id="insert-reson-timeM">

</select></span><%out.print(resource.getString("ReasonCancellation.popup.colok"));%>
</div>
</td>
</tr>
<tr>
<td><span name="insert-reson-resondetail" ><%out.print(resource.getString("ReasonCancellation.popup.detail"));%>:</span></td>
<td colspan="3"><textarea id="insert-reson-resondetail" rows="2" cols="45" ></textarea></td>
</tr>
<tr>
<td>&nbsp;</td>
<td colspan="3"><span><input type="hidden" id="chooseRoomCancel"><input type="checkbox" id="insert-reason-send-email" style="padding-bottom:10px;" onclick="ShowInsertEmail()"></span>&nbsp;<span><%out.print(resource.getString("ReasonCancellation.popup.sendemail"));%></span>
<span id="insert-massage" style="float:right; padding-right:10px; display:none;"><a href="javascript:void(0);" onclick="ShowMassageBox()"><%out.print(resource.getString("ReasonCancellation.popup.insertmassage"));%></a></span>
<div id="reason-insert-email-massage" style="display:none;">
<textarea id="insert-email-massage" rows="2" cols="45" ></textarea>
</div>
</td>
</tr>
<tr>
<td colspan="4" align="center"><span><input type="button" id="insert-reason-btn-cancelres" onclick="AddReasonCancel()" style="margin-top:10px; p" value="<%out.print(resource.getString("ReasonCancellation.btn.cancelres"));%>"></span>
<span><input type="button" id="insert-reason-btn-close" onclick="CloseReasonWarning(id)" style="width:50px" value="<%out.print(resource.getString("ReasonCancellation.btn.close"));%>"></span>
</td>

</tr>
</table>
</div>
<!----------------------------------------confrime E-mail------------------------------>

<div id="dialog-confirm-email" style="display:none; width:450px; height:86px; border:#335385 solid 1px;" >
<table width="100%">
<tr style="background-color:#6780bb;" height="34px">
<td colspan="2" width="100%">
<span style="color:#FFF; font-size:18px; float:left; padding-left:10px;">
<%out.print(resource.getString("ReasonCancellation.popup.confirmemail"));%></span>
<span style="float:right; margin-right:5px;"><img src="/images/components/editrevered/cancel.png" width="12px" height="12px" id="confirm-email-close" onclick="CloseReasonWarning(id)"></span>
</td>
</tr>
<tr height="52px">
<td width="25%">
<% out.print(resource.getString("ReasonCancellation.popup.email")); %>:
</td>
<td width="75%">
<span><input type="text" id="insert-confirm-email" style="width:60%"></span>
<span><input type="button" style="background-color:f9f9fa; width:56px; height:23px;" 
value="<%=resource.getString("Reservation.edit.popup.ok")%>" onclick="SendEmail()"></span>
<span><input type="button" id="reson-warning-btn-cancel" style="background-color:f9f9fa; width:56px; height:23px;"
value="<%=resource.getString("ReasonCancellation.btn.cancel")%>" onclick="CloseReasonWarning(id)"></span> 
</td>
</tr>
</table>
</div>
<!------------------------------------------------------Emailwarnnig---------------------------->
<div id="dialog-show-confirm-email" style="display:none; width:254px; height:130px; border:#335385 solid 1px;" >
<table width="100%">
<tr style="background-color:#6780bb;" height="34px">
<td colspan="2" width="100%">
<span style="color:#FFF; font-size:18px; float:left; padding-left:10px;">HOTEL 2 WIN</span>
<span style="float:right; margin-right:5px;"><img src="/images/components/editrevered/cancel.png" width="12px" height="12px" id="sendemail-warning-close" onclick="CloseReasonWarning(id)"></span>
</td>
</tr>
<tr height="62px">
<td width="25%">
<img src="/images/components/ReasonCansellation/warning.png" style="width:45px; height:45px; padding-left:10px;" >
</td>
<td width="75%">
<% out.print(resource.getString("ReasonCancellation.popup.confirmdetail")); %>
</td>
</tr>
<tr style="background-color:f8f9f9; height:34px;">
<td width="100%" align="center" colspan="2">
<input type="button" id="sendemail-warning-btn-close" style="background-color:f9f9fa; width:56px; height:23px;" 
value="<%=resource.getString("ReasonCancellation.btn.close")%>" onclick="CloseReasonWarning(id)">
</td>
</tr>
</table>
</div>